package com.ctg.payroll2.dao.cusadmin.impl;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.po.PbHeadship;
import com.ctg.payroll2.dao.cusadmin.PbHeadshipDAO;
import com.ctg.platform.orm.ibatis.IbatisEntityDao;
import com.ibatis.sqlmap.client.SqlMapClient;

public class PbHeadshipDAOImpl extends
		IbatisEntityDao<PbHeadship> implements
		PbHeadshipDAO {

	public void delete(List data) throws SQLException {
		SqlMapClient sqlMapClient = this.getSqlMapClient();
		sqlMapClient.startBatch();
		for (int i = 0; i < data.size(); i++) {
			PbHeadship o = (PbHeadship) data.get(i);
			sqlMapClient.update("PbHeadship.deleteByPrimaryKey", o);
		}
		sqlMapClient.executeBatch();
	}

}
